// import { Options } from '@/utils/constant'
// import bus from '@/api/bus'
// import { getItemList } from '@/api/api'
// import { mapGetters } from 'vuex'
import { setLocalStorage, getLocalStorage } from '@/utils/localStorage'

export default {
  components: {
    // AppInfoItem
  },
  props: {
    // rowCurr: {
    //   type: Object,
    //   default: {}
    // }
  },
  data() {
    return {
      patientSourceToqueryWay: ''
    }
  },
  computed: {
    // ...mapGetters(['rowCurr'])
    appConfig() {
      return this.$store.state.settings.appConfig
    },
    IS_TRIGGER_PATIENTID() {
      return (this.appConfig && this.appConfig.baseConfig && this.appConfig.baseConfig.IS_TRIGGER_PATIENTID) || window.g.IS_TRIGGER_PATIENTID
    }
  },
  watch: {
    // //
  },
  mounted() {
    // console.log('=######=emergencyTypes=######=', this.emergencyTypes)
  },
  methods: {
    refreshThisPatientSourceToQueryWay() {
      console.log('refreshThisPatientSourceToQueryWay=>IS_TRIGGER_PATIENTID', this.IS_TRIGGER_PATIENTID)
      this.patientSourceToqueryWay = !this.IS_TRIGGER_PATIENTID ? getLocalStorage('patientSourceToqueryWay') && JSON.parse(getLocalStorage('patientSourceToqueryWay')) || {
        1: 1, // 毕节的医院需求是门诊选到门诊号
        2: 2, // 毕节的医院需求是住院选到住院号
        3: 1,
        4: 1,
        5: 1,
        6: 1,
        0: 1
      } : { 1: 2, 2: 3, 3: 1, 4: 1, 5: 1, 6: 1, 0: 1 }
    },
  }
}
